package com.xzh.wms.dao;

import cn.xzh.smart.core.annotataion.PageX;
import com.xzh.wms.entity.User;
import com.xzh.wms.entity.UserQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


/**
 * 用户表;(210_user)表数据库访问层
 * @author : heimi
 * @date : 2024-11-18
 */
@Mapper
public interface UserDao{

    @PageX
    List<User> select(UserQuery query);
    Integer insert(User user);
    Integer insertBatch(List<User> users);
    Integer update(User user);
    Integer delete(Integer id);
    User selectByTel(String tel);

     User selectByTelAndPassword(String tel, String password);
     User selectByTelAndCode(String tel, Integer code);
    @PageX
    List<User> selectAll(UserQuery query);
}
